
import Http from "../utils/http";

class PayModel extends Http{

    static getOpenid(code){
        return Http.request({
            url : "/weixinpay/login",
            method : "GET",
            data : {code}
        })
    }

    
    static doOrder(data = {}){
        return Http.request({
            url : "/weixinpay/doOrder",
            method : "POST",
            data
        })
    }
}

export default PayModel